package com.block.common.config;


import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
public class OSSConfiguration {

    @Value("${oss.platform}")
    private String platform;

    @Value("${oss.accessKeyId}")
    private  String accessKeyId;
    @Value("${oss.accessKeySecret}")
    private  String accessKeySecret;
    @Value("${oss.endpoint}")
    private  String endpoint;
    @Value("${oss.roleArn}")
    private  String roleArn;
    @Value("${oss.policy}")
    private  String policy;
    @Value("${oss.allowPrefixes}")
    private  String allowPrefixes;
    // sts token 的有效时间
    @Value("${oss.token.duration}")
    private  Integer tokenDuration;
    // 临时授权url的有效时间
    @Value("${oss.url.duration}")
    private  Integer urlDuration;

    @Value("${oss.bucket}")
    private  String bucket;
    @Value("${oss.hostUrl}")
    private  String hostUrl;

}
